home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4943 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: cs.ruu.nl!usenet
  2. From: wsldanke@cs.ruu.nl (Wessel Dankers)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: x ^= y ^= x ^= y;
  5. Date: 06 Mar 96 19:31:46 +0100
  6. Organization: Dept of Computer Science, Utrecht University, The Netherlands
  7. Message-ID: <759.6639T1171T2330@cs.ruu.nl>
  8. References: <1286.6624T1439T237@cs.ruu.nl> <3131C523.1ECC@sapiens.com>
  9.     <4h075l$2go@elmer.tsc.com> <2141.6632T1213T2220@cs.ruu.nl> <4hilq7$rpg@news.ox.ac.uk>
  10. NNTP-Posting-Host: anx1p10.cc.ruu.nl
  11. X-Newsreader: THOR 2.22 (Amiga TCP/IP)
  12.  
  13. Benjamin Hutchings <worc0223@sable.ox.ac.uk> wrote:
  14. > You f*cking idiot! I didn't write that! Get your attribution lines right
  15. > or just leave this thread and go back to your AMOS tutorials.
  16. Somebody else (dunno who) "f*cked" that up for me.
  17.  
  18. > The compiler can choose to store the new values of variables in any order
  19. > it wants. So when the variable is read again later in the evaluation of the
  20. > expression you do _not_ know whether it will read the changed value or the
  21. > original value. So the results of statements such as "x ^= y ^= x ^= y;" are
  22. > undefined under ANSI. This is in the FAQ in a relevant group, I believe,
  23. > since it comes up so often. KILL THIS THREAD NOW! I can't be bothered to
  24. > reply to the rest of your idiotic posting.
  25.  
  26. chill out
  27.  
  28.